﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace HeSeHus.Model
{
    public class KnownValues
    {
        private int _propId;
        private Dictionary<int,List<string>> _valueDictionary;
        private List<string> _value;

        /// <summary>
        /// @Rasmus Bjørn Rasmussen
        /// </summary>
        public KnownValues()
        {
            _valueDictionary = new Dictionary<int, List<string>>();
            _value = new List<string>();
        }

        public void AddValue(int propId, List<string> value)
        {
            if (_valueDictionary.ContainsKey(propId))
            {
                foreach (var item in value)
                {
                    _valueDictionary[propId].Add(item);
                }
            }
            else
            {
                _valueDictionary.Add(propId, value);
            }
        }

        public List<string> Value
        {
            get { return _value; }
            set { _value = value; }
        }
        
        public Dictionary<int,List<string>> ValueDictionary
        {
            get { return _valueDictionary; }
            set { _valueDictionary = value; }
        }
        
        public int PropertiesId
        {
            get { return _propId; }
            set { _propId = value; }
        }
        
    }
}
